/**
 * Created with Vim7.3 ubuntu12.04
 * @fileOverview : 
 * @author : Lyle <lylechen2014@gmial.com>
 * @since : 2014-11-26 16:29:57
 * @filename : model/gold_montor.js
 * @version : 
 * @description : 
 */

define(function(require, exports, module){

      var gmM = Backbone.Model.extend({

            initialize: function(){

            },

            'defaults' : {
                 name : null,
                 ratio : null,
                 historyGold : null,
                 todayGold : null          
            },

            validate: function(attrs) {
               /*
               //console.log('gmM validate',attrs);
               var bool = false, error={}; 
     
               _.each(attrs,function(val,key){
                   if (val == '') {
                       bool = true;
                       error[key] = 'invalid';
                   }
               })

               if (bool) {
                   return error;
               } 
               */             
            }
      });

      var gmC = Backbone.Collection.extend({ model: gmM });

      exports.gmC = gmC;
      exports.gmM = gmM;      
});

